package pl.edu.agh.solid;


/*
 * SFace object is given by surrounding nodes p[0]....p[n-1]
 * float [][] vertex;
 * 
 * veretx [0][0] -> p[0].x
 * veretx [0][1] -> p[0].y
 * veretx [0][2] -> p[0].z
 * 
 * 
 * 
 */
public class Face {
	
	FaceEdge [] edges;
	
	
	public FaceEdge[] getEdges() {
		return edges;
	}


	Face(float [][] vertices) {
	
		edges = new FaceEdge[vertices.length];
		
		for(int k=0; k< vertices.length; k++) {
			
			FaceEdge e = new FaceEdge(vertices[k],vertices[k % vertices.length]);
			edges[k] = e;
			
			
		}
		
	}

	
	
}
